%使用线性规划的特殊形式函数：整形规划函数intlinprog

f = [-540,-200,-180,-350,-60,-150,-280,-450,-320,-120];
intcon = [1,2,3,4,5,6,7,8,9,10];
A = [6,3,4,5,1,2,3,5,4,2];
b = [30];
lb = zeros(10,1);
ub = ones(1,10);
[x,val] = intlinprog(f,intcon,A,b,A,b,lb,ub);